<?php 
namespace Home\Model;
use Think\Model;
class CollectionModel extends Model
{
	protected $_auto = array(
		//写入时 对addtime字段自动写入当前时间
		array('addtime','time',1,'function'),
	);
}
















